package com.senven.api.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.senven.api.pojo.Student;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author LQP
 */
@Component
@Mapper
public interface StudentMapper extends BaseMapper<Student> {
    public List<Student> queryStudentList();

    //根据id查询一个学生实体
    public Student queryStudentListById(String id);

    //插入一个学生实体
    public int insertStudent(Student student);

    //更新一个学生实体
    public int updateStudent(Student student);

    //删除一个学生实体
    public int deleteStudent(String id);

}

